home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Magnum One
/
Magnum One (Mid-American Digital) (Disc Manufacturing).iso
/
d19
/
pcbrt201.arc
/
PCBRAT.DOC
< prev
next >
Wrap
Text File
|
1989-01-11
|
8KB
|
171 lines
PCBoard Auto Ratio Program for PCBoard 14.0
version 2.01
01-07-89
by Alexander Morris
(C) DataCom SoftWare 1987, 89
BBS # (212) 496-7946
1. Purpose
The purpose of this program is to go through the entire user file and
check all users upload/download ratios and re-set their access levels
according to your own specifications. There is also an optional message check,
which allows you to keep the users who are more message active than file active
from being dumped into a lower access level.
2. Setup
This program is very similar to PCBREG, except in what it does. The
setup works the same, except that the setup file is called PCBRAT.DAT. As
soon as the program runs, and that file is not found, it asks you if you would
like to setup the program. If you answer 'no', then the program will exit,
otherwise, it will put you through the whole set up. All the setup options
must be filled in correctly, and if they are not, the program will most likely
not work how you want it. When you are done this, you are required to make a
simple text file called PCBRAT.RAT, which contains the ratio information. This
file is very important, because it controls how PCBRAT handles the users. A
sample line from a PCBRAT.RAT line would be as follows:
50 R1=45>10 R2=55<5 NOLMSG
The first number indicates that the rest of the options on that line will
pertain to access level 50 and ONLY 50. The R1 tells PCBRAT to lower the
user to access level to 45 if his up/download ratio IS MORE THAN 1 to 10. R2
tells the program that if the level 50 user has an up/download ratio of LESS
THAN OR EQUAL TO 1 to 5, then make his access level 55. The NOLMSG flag is an
option that will only be used if the answer to include message check in the
setup is marked as yes. It tells PCBRAT "if a user has a poor upload/download
ratio, but he is relatively up to date in reading his messages, do not lower
him to 45, but keep him at level 50."
The following would also be necessary for proper operation when dealing
with messages:
45 R2=50<10 MSG
The line tells PCBRAT that if a level 45 user has a ratio of less than or
equal to 10, then raise his access level back to 50. But if he does not have
a good ratio (and the message option is set yes when configuring PCBRAT) and
the MSG flag is found, to raise the user's access level back to 50 IF he is
relatively up to date in reading his messages.
The reason that the NOLMSG flag was added was because there were conflicts
with MSG that would cause users levels to be left the same when the should
be lowered. The NOLMSG flag was the result of the need of another flag to
crush the adjustment using messages bug.
Note that when you make your PCBRAT.RAT file, it must follow the same exact
format as shown above (ie. < must be < , etc.). Also, make sure that there
are NO blank lines anywhere above, inbetween, or below the actual lines to
be processed. Listed below is the PCBRAT.RAT file use for my board:
45 R2=50<10 MSG
50 R1=45>10 R2=55<5 NOLMSG
55 R1=50>5
60 R2=70<6
70 R1=60>6
Note also that any access level not marked will not be affected (ie. since
no level 80 line is specified, all users with access level 80 will be
ignored).
One more important thing. To make sure you have your setup file correct,
run the program twice in a row, and if no users are changed the second run,
then you know that you have correctly written your PCBRAT.RAT file. If not,
just go back and see which two statements are overlapping, correct it, and
try it again.
3. Features
PCBRAT has the following features:
o Customize your own ratios for each access level
o Optionally back up the user file
o Optionally add a message check when processing ratios using the
MSG and NOLMSG flags in the PCBRAT.RAT file and by setting the
add message check option to yes when configuring PCBRAT
o Allows optional logging of PCBRAT activites
o Tells you if your ratio file is incorrect (exits with an error)
o Checks to see if user file is there
o Specify paths to all files (except PCBRAT.DAT)
o Disable ANSI.SYS codes used for color via a command line parameter
o Allows remote use via the DOS CTTY command via special read/write
procedures
o Written in Turbo Pascal 5.0
o Compiles ratio file instantaneously upon every run
o Gives statistics on number of users raised, lowered, etc.
o Compatible with PCBoard 14.0 user file
o Ignores users with 0:0 upload/download ratios
o Gives account of each user who was raised or lowered in access
o Also displays user number of user being updated
o Fully supports file SHAREing so that no datafiles can get corrupted
while program is running under a network
o Trap to make sure setup file from wrong version of PCBRAT is not
used by mistake
o makes sure user file, ratio file, message file (if used) is present
in directory or file that was given in the setup
o Shows number of users saved by message check (if message check active)
4. Operation
PCBRAT also allows you to disable the ANSI.SYS codes used for color by
specifying the command line parameter -a or -A (ie. PCBREG -a). That is
essentially all that must be said about the program. Everything else is
automatic after it is set up correctly. I have tested the program for about
two months and can not find any errors anymore. This program, just like PCBREG,
is most likely to be used a PCBoard event, a sample being as follows:
Note: C:\PCB is PCBoard's directory, C:\PCB\MAIN is PCBoard's main directory
C>copy con:event.sys
c:
cd\pcb\main
pcbrat
cd\pcb
board
(ctrl-Z)(CR)
1 file(s) copied
C>
File SHAREing is fully supported, so PCBoard and PCBRAT can be running
simultaneously without any fear of data loss or corruption! This should
please the increasing multi-node PCBoard PCBRAT users out there!
5. Disclaimer
If this program ruins any or all of your files, then do not blame me. If
something like that occurs, then it is probably the result of your setting up
the program incorrectly. I have tested the program out quite thoroughly, and am
quite sure that nothing of the sort would occur.
6. Miscellaneous
If you find the program a necessity which you could not do without, I
ask that you give a donation. A donation of $25 is recommended, and should
be mailed to the following address:
Alexander Morris
DataCom SoftWare (PCBRAT)
15 W. 81st Street
New York, NY 10024
If you do not give a donation, you will feel forever guilty for not helping
a fellow sysop by supporting his hard work. For version information, check
the file UPDATES.RAT.
NOTE: If you use this program, I REQUEST that you notify all of your users
via the news file or something similar that your are using this program
(and/or PCBREG) in your PCBoard operation.
7. Board Information / Bug Info
If you find any bugs, please call my board and report them!
My board number and stats are listed below:
DataCom SoftWare BBS
(212) 496-7946
24 hours, 7 days a week, USR HST 1200/2400/9600/19200 baud!
running PCBoard 14.0/E3 -- specializing in Turbo Pascal, MIDI
LaserJet, Graphics, and much, much more!!!